#pragma pack(2)
typedef struct
{
    unsigned short int type;
    unsigned int size;
    unsigned short int reserved1,reserved2;
    unsigned int offset;


} Header;
#pragma pack()
typedef struct
{
    unsigned int size;
    int width;
    int height;
    unsigned short plane;
    unsigned short bitcount;
    unsigned int compression;
    unsigned int imagesize;
    int xresolution;
    int yresolution;
    unsigned int ncolors;
    unsigned int importantcolors;

} Infoheader;
